<html  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="/layui/jquery-3.5.1.min.js"></script>
    <link rel="stylesheet" href="/layui/css/layui.css"  media="all">
    <script src="/layui/layui.js" charset="utf-8"></script>
</head>
<body>
<form class="layui-form" action="" lay-filter="example">
    <legend>派车详情</legend>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">添加人工号</label>
            <div class="layui-input-inline">
                <input type="text" readonly="readonly" th:value="${staff.id}" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">添加姓名</label>
            <div class="layui-input-inline">
                <input type="text" readonly="readonly" th:value="${staff.name}" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">用车时间</label>
            <div class="layui-input-inline">
                <input type="text" readonly="readonly" th:value="${#dates.format(account.startTime,'yyyy-MM-dd hh-mm-ss') }" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">结束时间</label>
            <div class="layui-input-inline">
                <input type="text" readonly="readonly" th:value="${#dates.format(account.endTime,'yyyy-MM-dd hh-mm-ss')}" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">目的地</label>
            <div class="layui-input-inline">
                <input type="text" readonly="readonly" th:value="${account.destination}" autocomplete="off" class="layui-input">
            </div>
        </div>



        <!--                <button type="button" class="layui-btn layui-btn-primary layui-btn-sm">查看详情</button>-->
    </div>
    <fieldset class="layui-elem-field" style="margin-top: 20px; padding-left: 20px" th:each="one:${cars}" th:if="${cars ne null} ">
        <legend>车辆信息</legend>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">车辆型号</label>
                <div class="layui-input-inline">
                    <input type="text" readonly="readonly" th:value="${one.model}" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">车牌号</label>
                <div class="layui-input-inline">
                    <input type="text" readonly="readonly" th:value="${one.licensePlateNumber}" autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-inline">
                <label class="layui-form-label">最大载人数</label>
                <div class="layui-input-inline">
                    <input type="text" readonly="readonly" th:value="${one.maximumNumberPassengers}" autocomplete="off" class="layui-input">
                </div>
            </div>



            <!--                <button type="button" class="layui-btn layui-btn-primary layui-btn-sm">查看详情</button>-->
        </div>
    </fieldset>
</form>
</body>
</html>